package com.ftrend.printdemo.mhttemplate;

/**
 * 行元素框
 *
 * @author mapleaf
 * @date 2022/09/08
 */
public class LineElementBox {
    private final int start;
    private final int center;
    private final int end;

    public LineElementBox(int start, int end) {
        this.start = start;
        this.end = end;

        this.center = Math.floorDiv(end - start, 2);
    }

    public int getStart() {
        return start;
    }

    public int getEnd() {
        return end;
    }

    public int getCenter() {
        return center;
    }
}
